bufio.Reader.buf (field)
33 uses
bufio (current package)
bufio.go#L33: buf []byte
bufio.go#L50: if ok && len(b.buf) >= size {
bufio.go#L67: func (b *Reader) Size() int { return len(b.buf) }
bufio.go#L81: if b.buf == nil {
bufio.go#L82: b.buf = make([]byte, defaultBufSize)
bufio.go#L84: b.reset(b.buf, r)
bufio.go#L89: buf: buf,
bufio.go#L102: copy(b.buf, b.buf[b.r:b.w])
bufio.go#L107: if b.w >= len(b.buf) {
bufio.go#L113: n, err := b.rd.Read(b.buf[b.w:])
bufio.go#L150: for b.w-b.r < n && b.w-b.r < len(b.buf) && b.err == nil {
bufio.go#L154: if n > len(b.buf) {
bufio.go#L155: return b.buf[b.r:b.w], ErrBufferFull
bufio.go#L168: return b.buf[b.r : b.r+n], err
bufio.go#L227: if len(p) >= len(b.buf) {
bufio.go#L244: n, b.err = b.rd.Read(b.buf)
bufio.go#L257: n = copy(p, b.buf[b.r:b.w])
bufio.go#L259: b.lastByte = int(b.buf[b.r-1])
bufio.go#L274: c := b.buf[b.r]
bufio.go#L296: b.buf[b.r] = byte(b.lastByte)
bufio.go#L306: for b.r+utf8.UTFMax > b.w && !utf8.FullRune(b.buf[b.r:b.w]) && b.err == nil && b.w-b.r < len(b.buf) {
bufio.go#L313: r, size = rune(b.buf[b.r]), 1
bufio.go#L315: r, size = utf8.DecodeRune(b.buf[b.r:b.w])
bufio.go#L318: b.lastByte = int(b.buf[b.r-1])
bufio.go#L354: if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
bufio.go#L356: line = b.buf[b.r : b.r+i+1]
bufio.go#L363: line = b.buf[b.r:b.w]
bufio.go#L370: if b.Buffered() >= len(b.buf) {
bufio.go#L372: line = b.buf
bufio.go#L538: if b.w-b.r < len(b.buf) {
bufio.go#L563: n, err := w.Write(b.buf[b.r:b.w])
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |